package cn.com.connected.entity;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import cn.com.connected.common.config.ListStringTypeHandler;
import java.util.List;
import java.io.Serializable;
import java.util.Date;

/**
 * 动态
 * 
 * @author sms
 * @email sms@live.com
 * @date 2025-04-10 16:15:14
 */
@TableName(value = "dynamic",autoResultMap = true)
@Data
@ApiModel(description = "动态")
public class DynamicEntity implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(type = IdType.ASSIGN_UUID)
    @TableField(value = "`id`")
    @ApiModelProperty(value = "")
    private String id;

    @TableField(value = "`ip`")
    @ApiModelProperty(value = "ip")
    private String ip;

    @TableField(value = "`ip_city_name`")
    @ApiModelProperty(value = "ip对应城市")
    private String ipCityName;

    @TableField(value = "`latitude`")
    @ApiModelProperty(value = "精度")
    private Double latitude;


    @TableField(value = "`longitude`")
    @ApiModelProperty(value = "纬度")
    private Double longitude;


    @TableField(value = "`address_name`")
    @ApiModelProperty(value = "地区名字")
    private String addressName;


    @TableField(value = "`keyword`")
    @ApiModelProperty(value = "关键词")
    private String keyword;


    @TableField(value = "`content`")
    @ApiModelProperty(value = "内容")
    private String content;


    @TableField(value = "`imgs`",typeHandler = ListStringTypeHandler.class)
    @ApiModelProperty(value = "图片,")
    private List<String> imgs;


    @TableField(value = "`videos`",typeHandler = ListStringTypeHandler.class)
    @ApiModelProperty(value = "视频,")
    private List<String> videos;


    @TableField(value = "`member_id`")
    @ApiModelProperty(value = "创建者")
    private String memberId;


    @TableField(value = "`create_time`")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;


    @TableField(value = "`state`")
    @ApiModelProperty(value = "记录状态")
    private Integer state;
}